/**
 * 
 */
package com.shashi.security.login.service;

import com.shashi.framework.base.service.BaseService;
import com.shashi.security.login.Login;
import com.shashi.security.login.exception.LoginNotFoundException;

/**
 * @author shashikantmore
 * 
 */
public interface LoginService extends BaseService<Login>	{

	/**
	 * Method for login to the system.
	 * 
	 * @param loginName
	 * @param password
	 * @return
	 * @throws LoginNotFoundException
	 */
	public String login(String loginName, String password) throws LoginNotFoundException;

	/**
	 * Method for logout to the system.
	 * @param loginName
	 */
	public void logout(String loginName);

	public String register(Login login);

	public void deleteByLoginName(String string);

}
